package com.bw.mine.model.api

import com.bw.common.commonentity.UserEntity
import com.bw.net.entity.BaseRespEntity
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * @author:created by hahajing
 * 时间：2024/5/6 0006
 * 企鹅号:444511958
 * 描述:
 */
interface UserCenterApi {
    @FormUrlEncoded
    @POST("user/login")
    suspend fun login(@Field("username") username:String,@Field("password") password:String):BaseRespEntity<UserEntity>

    @FormUrlEncoded
    @POST("user/register")
    suspend fun register(@Field("username") username:String,@Field("password") password:String):BaseRespEntity<UserEntity>

}